package com.edu.cuotibook.entity.common;

/**
 * create by sym  2021/3/22 18:56.
 */

public enum  CodeMsg {
    SUCESS(0,"操作成功"),
    FAIL(500,"系统出错"),
    TOO_FAST(101,"稍后再试"),
    NO_SUCH_TYPE(10001,"类型错误"),
    ERROR_FILE_NAME(10002,"文件名为空"),
    NOT_EXEL(10003,"文件必须为exel类型"),
    ;
    private Integer code;
    private String msg;

    CodeMsg(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
